//引入第三层函数
const {
    getLogin3,getCheck3,getWantCheck3,argreeCheck3,
    getWantChange3,
    getChange3,
    argreeChange3,
    create3
}=require("../database/dao/users.js")

//暴露第二层函数
module.exports={
    getLogin2,
    getCheck2,
    getWantCheck2,
    argreeCheck2,
    getWantChange2,
    getChange2,
    argreeChange2,
    create2
}

//生成用户
async function create2(data){
    const result=await create3(data);
        return result
}

//登录
async function getLogin2(data){
    const result=await getLogin3(data);
        return result
}
//用户认证
async function getCheck2(data){
    const result=await getCheck3(data);
        return result
}
//获取需要认证的用户
async function getWantCheck2(data){
    const result=await getWantCheck3(data);
        return result
}
//同意认证
async function argreeCheck2(data){
    const result=await argreeCheck3(data);
        return result
}

//用户审核
async function getChange2(data){
    const result=await getChange3(data);
        return result
}
//获取需要审核的用户
async function getWantChange2(data){
    const result=await getWantChange3(data);
        return result
}
//同意审核
async function argreeChange2(data){
    const result=await argreeChange3(data);
        return result
}